import mongoose from '../dbHelper';
import {defaultSchemaExtend, defaultSchemaOptions} from "../config/index";

const Schema = mongoose.Schema;

const MaterialSchema = new Schema(Object.assign({
    type: {
        type: Number,
        required: true,
    },
    path: {
        type: String,
        required: true,
    },
    filename: {
        type: String,
        // required: true,
    },
}, defaultSchemaExtend), defaultSchemaOptions);

const Refund = mongoose.model('DlyAdminMaterial', MaterialSchema, 'DlyAdminMaterials');

export default Refund